//
//  ChartCategoryAmount.swift
//  KoiAccounting
//
//  Created by 纪洪文 on 05.04.25.
//

import Foundation
struct CategoryAmount {
    var category: AccountingCategory
    // 类别汇总金额
    var amount: Double
    // 类别汇总百分比
    var percent: Double = 0.0
    
    var dateString: String = ""
    
    func getDateText() -> String {
        let date = dateString.toDate() ?? Date()
        return date.toFriendlyString()
    }
}
